import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/users', name: "users", component: () => import("@/views/Users.vue") },
    { path: '/userAdd', name: 'add', component: () => import("@/views/AddOrEdit.vue") },
    { path: '/userEdit', name: 'edit', component: () => import("@/views/AddOrEdit.vue") }
  ],
})

export default router
